<?php

?>
<div class="srbacForm">
  <?php echo CHtml::form() ?>
  <div class="action">
    <?php echo "<b>".AdmGroup::model()->getPrivilege($task)."</b>" ?>
  </div>
      
  <?php if (count($taskAction)>0) { ?>
	<div>
		<?php /* echo  CHtml::checkBoxList("actions", "", $actions,array("checkAll"=>"<b>".Yii::t('adm','Check All')."</b>",));*/ ?>
		<ul>
			<li class="w_210 o_h f_l"><?php echo Yii::t('adm','操作')?></li>
			<li class="w_100 o_h f_l"><?php echo Yii::t('adm','操作名')?></li>
			<li class="w_60 o_h f_l"><?php echo Yii::t('adm','删除')?></li>
			<?php foreach($taskAction->childs as $n=>$value){?>
				<li class="w_210 o_h f_l"> <?php echo $value->child?></li>
				<li class="w_100 o_h f_l"><input type="input" size="13" name="actionName[<?php echo $value->child?>]" value="<?php echo $value->action->zag_title ?>"/></li>
				<li class="w_60 o_h f_l">
					<?php 
						echo CHtml::link(
								CHtml::image('/images/delete.png',"删除权限"),
								'javascript:',
								array(
										'class'=>'submit_delete',
										'action'=>$value->child,
										'tasks'=>$task,
								)
						);
                	?>
				</li>
			<?php }?>
		</ul>
	</div>
  <?php } ?>
  <div class="simple">
		<hr><br>
		<?php echo Yii::t('adm','重命名'); ?>:&nbsp;&nbsp;
		<?php echo CHtml::textField("tasks[zag_title]",$taskAction->zag_title,array('size'=>'30')); ?>
		<br><br>
		<?php echo Yii::t('adm','说&nbsp;&nbsp;&nbsp;&nbsp;明'); ?>:&nbsp;&nbsp;
		<?php echo CHtml::textField("tasks[description]",$taskAction->description,array('size'=>'30')); ?>
		<?php echo CHtml::hiddenField("task", $task)?>
  </div>
  <div class="action">
    <?php echo CHtml::button(Yii::t('adm','Save'), array('id'=>'submit_button'))?>
  <?php echo CHtml::endForm()?>
  </div>
</div>

